package com.bristua.order.controller;
import com.bristua.common.bean.CommonQueryParams;
import com.bristua.common.bean.Result;
import com.bristua.common.utils.HandleResultUtil;
import com.bristua.order.biz.QueryUserOrdersBiz;
import com.bristua.order.model.condition.QueryOrderParams;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/4/3.
 */
@RestController
@Api(value="查询用户订单列表",tags={"查询用户订单列表"})
public class QueryUserOrdersController {
    @Autowired
    private QueryUserOrdersBiz queryUserOrdersBiz;
    @ApiOperation(value="查询用户订单列表")
    @PostMapping(value="/admin/user/order/query")
    public Result queryUserOrders(@RequestBody QueryOrderParams queryOrderParams){
        return HandleResultUtil.querySuccessResult(queryUserOrdersBiz.queryUserOrder(queryOrderParams));
    }
}
